package com.parktech.sun.domain.model.industryservice;

import com.parktech.sun.domain.model.BaseEntity;

import javax.persistence.*;
import java.util.List;

/**
 * User: Think
 * Date: 11-1-17
 * Time: 下午7:24
 */
@Entity
public class IndustryServiceInfoCategory extends BaseEntity {

    private String name;

    private String imageName;

    private Integer orderCode;

    private IndustryService industryService;

    private List<IndustryServiceInformation> informationList;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public Integer getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(Integer orderCode) {
        this.orderCode = orderCode;
    }

    @ManyToOne
    public IndustryService getIndustryService() {
        return industryService;
    }

    public void setIndustryService(IndustryService industryService) {
        this.industryService = industryService;
    }

    @Transient
    public List<IndustryServiceInformation> getInformationList() {
        return informationList;
    }

    public void setInformationList(List<IndustryServiceInformation> informationList) {
        this.informationList = informationList;
    }
}